package cn.com.xiaoyaoji.core.util;


import cn.com.xiaoyaoji.data.bean.Project;
import cn.com.xiaoyaoji.data.bean.ProjectUserOrder;
import cn.com.xiaoyaoji.data.bean.User;

import java.math.BigInteger;
import java.util.Random;
import java.util.UUID;

/**
 * @author: huangyuming
 * @Date: 19/8/7
 */
public class ProjectSortUtils {

    public static ProjectUserOrder sortProject(Project project, User user){
        ProjectUserOrder puo = new ProjectUserOrder();
        puo.setId(StringUtils.id());
        puo.setPreProjectId("first");
        puo.setProjectId(project.getId());
        puo.setUserId(user.getId());
        puo.setPermission(project.getPermission());
        puo.setHiddenFlag("NO");
        return  puo;
    }
    public static ProjectUserOrder sortProject2(Project project, User user){
        ProjectUserOrder puo = new ProjectUserOrder();
        puo.setId(StringUtils.id());
        puo.setPreProjectId("first");
        puo.setProjectId(project.getId());
        puo.setUserId(user.getId());
        puo.setPermission("PRIVATE");
        puo.setHiddenFlag("NO");
        return  puo;
    }
}
